//
//  OtherDaoHangView.m
//  ZaiYiLou
//
//  Created by hwd on 印度历1938/3/26.
//  Copyright © 印度历1938年 hwd. All rights reserved.
//

#import "OtherDaoHangView.h"

@implementation OtherDaoHangView

-(void)addDaoHangImageName:(NSString *)imageName Title:(NSString *)title
{
    self.backgroundColor = [UIColor colorWithHexString:@"#479DE4"];
    _leftBTn = [UIButton buttonWithType:UIButtonTypeCustom];
    _leftBTn.frame = CGRectMake(0,10,80,54);
    [_leftBTn setImage:[UIImage imageNamed:imageName] forState:UIControlStateNormal];
    //上 左 下 右
    [_leftBTn setImageEdgeInsets:UIEdgeInsetsMake(15,10,10,40)];
    [self addSubview:_leftBTn];
    
    _rightBTn = [UIButton buttonWithType:UIButtonTypeCustom];
    _rightBTn.frame = CGRectMake(SCREENW-80,10,80,54);
    [_rightBTn setTitle:@"保存" forState:UIControlStateNormal];
    [_rightBTn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    _rightBTn.titleLabel.font = [UIFont systemFontOfSize:17*screenW_6];
    //上 左 下 右
    [_rightBTn setTitleEdgeInsets:UIEdgeInsetsMake(15,10,10,15)];
    [self addSubview:_rightBTn];
    
    _titleLab = [TomamaUI createLabel:CGRectMake(80,15,SCREENW-160,50) textAligment:1 font:[UIFont systemFontOfSize:18*screenW_6] textColor:[UIColor whiteColor] text:title];
    [self addSubview:_titleLab];
}
@end
